package com.resign.carl.command.example1.api;

import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

/**
 * Created by carl.zhao on 2016/6/15.
 */
@NoArgsConstructor
@AllArgsConstructor
public class Light {

    private String roomname;

    public void on(){
        System.out.println(roomname + ",灯打开了");
    }

    public void  off(){
        System.out.println(roomname + ",灯关闭了");
    }

}
